#include "stdafx.h"
#include <iostream>

using namespace std;

class Animal{
	string name;
	int age;
	
	public:
		static int pcount;
	Animal(string name,int age):
	 name(name),age(age){
		 pcount ++;
	}

	~Animal(){
		pcount--;
	}


	void show(){
		cout << pcount<<endl;
	}
};

int Animal::pcount;
int main_animal(){
	
	Animal dog("xiaoqiang",2);
	dog.show();
	return 0;
}